package com.totvs.saude.autorizador;

import javax.enterprise.context.ConversationScoped;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;

@ManagedBean(name="CaptchaMB")
@ConversationScoped
public class CaptchaMB implements java.io.Serializable{
 
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String nome;
	
    public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	private String email;
 
    //Getters e Setters
 
    public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void salvar() {
		
		System.out.println("salvar");
		
        FacesMessage msg = new FacesMessage(
                                 FacesMessage.SEVERITY_INFO, 
                                 "","Salvo com Sucesso!");
 
        FacesContext.getCurrentInstance().addMessage("ok", msg);
    }
}